package com.sxbbc.common.core.entity.jz;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 鸡舍分红表
 * </p>
 *
 * @author
 * @since 2020-04-23
 */
@Data
public class ChickenBonus implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 鸡舍id
     */
    private Integer crId;




    /**
     * 鸡舍订单编号
     */
    private String orderCode;
    /**
     *
     */
    private Integer cid;
    /**
     * 分红类型 1 挂售订单  2 领养订单
     */
    private Integer type;

    /**
     * 基金单价(卖鸡单价）
     */
    private BigDecimal price;

    /**
     * 挂售数量
     */
    private Integer chickenNum;

    /**
     * 提鸡券数量
     */
    private Integer couponNum;

    /**
     * 备注，平台自动执行，手动发放
     */
    private String remark;

    /**
     * 孵化期间中第几天
     */
    private Integer day;

    /**
     * 是否发放：0 未发放 1 已发放
     */
    private Integer status;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 预计分红时间 跑定时器需要该参数
     */
    private Date bonusTime;

    @TableField(exist = false)
    private String bonusTimeStr;

    /**
     * 支付单号
     */
    private String payCode;

    /**
     * 鸡舍标题
     */
    @TableField(exist = false)
    private String title;
    /**
     * 实际分红时间
     */
    private Date bonusExecuteTime;

    private String number;

    /**
     * 鸡苗单价
     */
//    @TableField(exist = false)
    //private  BigDecimal price;

    @TableField(exist = false)
    private String queryTime;

    @TableField(exist = false)
    private String startTime;

    @TableField(exist = false)
    private String endTime;

    @TableField(exist = false)
    private String statusName;

    @TableField(exist = false)
    private String nickName;

    @TableField(exist = false)
    private String levelId;

    @TableField(exist = false)
    private String levelName;

    @TableField(exist = false)
    private String typeName;
}
